package fun.flyee.android.pengshan.acts;

import android.content.Intent;
import android.os.Bundle;

//import com.amap.api.maps.AMap;
//import com.amap.api.maps.model.CameraPosition;
//import com.amap.api.maps.model.LatLng;
//import com.amap.api.services.core.LatLonPoint;
//import com.amap.api.services.geocoder.GeocodeQuery;
//import com.amap.api.services.geocoder.GeocodeResult;
//import com.amap.api.services.geocoder.GeocodeSearch;
//import com.amap.api.services.geocoder.RegeocodeResult;

import butterknife.OnClick;
import fun.flyee.android.pengshan.AppContex;
import fun.flyee.android.pengshan.utils.Logger;
import fun.flyee.pengshan.social.R;

/**
 * An example full-screen activity that shows and hides the system UI (i.e.
 * status bar and navigation/system bar) with user interaction.
 */
public class MsgDemoActivity extends BaseActivity {

    @Override
    protected int layoutId() {
        return R.layout.act_msg_demo;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        handleIntent(getIntent());
    }

    @Override
    protected void onNewIntent(Intent in) {
        super.onNewIntent(in);
        handleIntent(in);
    }

    // todo tent://pengshan.flyee.fun/msg?#Intent;scheme=flyee;launchFlags=0x4000000;package=fun.flyee.pengshan.social;component=fun.flyee.pengshan.social/fun.flyee.android.pengshan.acts.AddressActivity;S.id=helloworld;end
    private void handleIntent(Intent in) {
        Bundle bundle = in.getExtras();
        if (bundle != null) {
            for (String key : bundle.keySet()) {
                Logger.i("msg in param", key + ": " + bundle.get(key));
            }
        }
    }

    @Override
    protected void onPostCreate(Bundle bundle) {
        super.onPostCreate(bundle);
    }

}
